

package com.dog.basics.bean.dto.admin.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author guonh
 * @since 2017-11-08
 */
@Data
public class AdminSysMenuAddDto {

	private static final long serialVersionUID = 1L;


	/**
	 * 菜单名称
	 */
	@NotBlank(message = "菜单名称不能为空")
	@ApiModelProperty(value = "菜单名称(30)", dataType = "String",required = true)
	@Size(min = 1,max = 30,message = "菜单名称长度 1-30")
	private String name;

	/**
	 * 菜单权限标识
	 */
	@ApiModelProperty(value = "菜单权限标识(30)", dataType = "String",required = false)
	@Size(max = 30,message = "菜单权限标识长度 1-30")
	private String permission;

	/**
	 * 父菜单ID
	 */
	@NotNull(message = "菜单父ID不能为空")
	@ApiModelProperty(value = "菜单父id", dataType = "Integer",required = true)
	private Long parentId;

	/**
	 * 图标
	 */
	@ApiModelProperty(value = "菜单图标(32)", dataType = "String",required = false)
	@Size(max = 32,message = "菜单权限标识长度 1-32")
	private String icon;

	/**
	 * 前端路由标识路径，默认和 comment 保持一致 过期
	 */
	@ApiModelProperty(value = "前端路由标识路径(100)", dataType = "String",required = false)
	@Size(max = 100,message = "菜单权限标识长度 1-100")
	private String path;

	/**
	 * 排序值
	 */
	@ApiModelProperty(value = "排序值")
	private Integer sort;

	/**
	 * 菜单类型 （0菜单 1按钮）
	 */
	@NotBlank(message = "菜单类型不能为空")
	@ApiModelProperty(value = "菜单类型,0:菜单 1:按钮")
	private String type;

	/**
	 * 路由缓冲
	 */
	@ApiModelProperty(value = "路由缓冲,0:否 1:是", dataType = "String",required = true)
	@NotBlank(message = "路由缓冲不能为空")
	private String keepAlive;


}
